package xyz.yeidi.service.api;

import xyz.yeidi.pojo.Deliveryaddress;

import java.util.List;

/**
 * @Author JIP
 * @Date 2021-08-06 11:00
 * @Version 1.0
 * @Describe :
 */
public interface DeliveryAddressService {
    //通过userId得到其所有的收货地址
    public List<Deliveryaddress> getAllAddressByUserId(Integer userId);

    //通过送货id查询收获地址
    public Deliveryaddress getAddressById(Integer id);

    //添加收获地址
    public boolean addAddress(Deliveryaddress deliveryaddress);
}
